package com.yugao.fintech.libra.model.vo.user;

import com.yugao.fintech.framework.validation.IsPhone;
import com.yugao.fintech.libra.common.constants.ValidationCons;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;


@Data
public class UserRegisterReq {
    @NotEmpty(message = ValidationCons.NOT_EMPTY)
    private String smsCode;

    @IsPhone(message = "请输入正确的手机号")
    @NotEmpty(message = ValidationCons.NOT_EMPTY)
    private String phone;

    @NotEmpty(message = ValidationCons.NOT_EMPTY)
    private String userName;

    @NotEmpty(message = ValidationCons.NOT_EMPTY)
    private String password;

    @Schema(description = "租户id")
    @NotEmpty(message = ValidationCons.NOT_EMPTY)
    private Long tenantId;
}
